package com.blog.check.resultenum;

import com.blog.check.ChkRsInterface;

/**
 * 博客类型枚举
 *
 * @author 泡面ing
 * @date 2021/11/23
 */
public enum BlogTypeChkRsEnum implements ChkRsInterface {


    /**
     *
     */
    SUCCESS(OK,"OK"),
    /**
     * 非法标识不存在
     */
    ILLEGAL_ID_NOT_EXIST(BLOGTYPE + 10000,"博客类型(id:{})不存在");


    private final int code;
    private final String msg;

    BlogTypeChkRsEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
